Include <climits> for GCC 16
authorPaul Zander <negril.nx+gentoo@gmail.com>
Mon, 12 Jan 2026 21:14:33 +0000 (22:14 +0100)
committerPino Toscano <pino@debian.org>
Sat, 6 Jun 2026 12:22:26 +0000 (14:22 +0200)
commit8de12117f67e72093b56367aa47fbd600abed654
tree870ece2588fe6cda62a96a35acbaaf7ee08cad32
parent7c80817226b449cebf6cf5f12aa39f2b3010f39e
Include <climits> for GCC 16

Origin: https://gitlab.freedesktop.org/poppler/poppler/-/commit/4a2294f59ebbbe690d09aa6f7e021e29cbb85782

```
poppler-26.01.0/poppler/SplashOutputDev.cc: In constructor
‘T3FontCache::T3FontCache(const Ref*, double, double, double, double, int, int,
int, int, bool, bool)’:
poppler-26.01.0/poppler/SplashOutputDev.cc:1129:18: error: ‘INT_MAX’ was not
declared in this scope
1129 |     if (glyphW > INT_MAX / glyphH || glyphW <= 0 || glyphH <= 0 ||
glyphW * glyphH > 100000) {
      |                  ^~~~~~~
poppler-26.01.0/poppler/SplashOutputDev.cc:84:1: note: ‘INT_MAX’ is defined in
header ‘<climits>’; this is probably fixable by adding ‘#include <climits>’
   83 | #include "SplashOutputDev.h"
  +++ |+#include <climits>
   84 | #include <algorithm>
```

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Gbp-Pq: Name Include-climits-for-GCC-16.patch
poppler/Function.cc
poppler/Gfx.cc
poppler/Parser.cc
poppler/SplashOutputDev.cc